package com.firstcare.android_dylibrary_demo.Home;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.firstcare.android_dylibrary_demo.R;
import com.rdxer.xxlibrary.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class Main2Activity extends BaseActivity {

    @BindView(R.id.textView2)
    TextView textView2;
    @BindView(R.id.button4)
    Button button4;
    @BindView(R.id.button5)
    Button button5;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.button4, R.id.button5})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.button4:
                break;
            case R.id.button5:
                break;
        }
        Toast.makeText(Main2Activity.this, "xxxx"+view.getId(), Toast.LENGTH_SHORT).show();
    }
//
//    @OnClick(R.id.button4,)
//    public void onClick() {
//        Toast.makeText(Main2Activity.this, "xxxx", Toast.LENGTH_SHORT).show();
//    }
//    @OnClick(R.id.button5)
//    public void onClick111(){
//        textView2.setText("xxxxxxaaa");
//    }
}
